home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / misc / gold_pk / install.bat < prev    next >
DOS Batch File  |  1993-10-19  |  7KB  |  145 lines

  1. echo off
  2. rem  Automatic Installation routine.  Requires two parameters:
  3. rem  1: the source drive (the one with the PkGOLD Testdrive files)
  4. rem  2: the target drive (where the program will be installed)
  5. rem  The target must have at least 360K free for the main program and
  6. rem  an additional 250K for the help system. A 720-K floppy or a hard
  7. rem  disk is recommended to allow all files to be installed.
  8. cls
  9. ECHO  ┌────────────────────────────────────────────────┐
  10. echo  │                                                │
  11. echo  │            Test Drive Installation             │
  12. echo  │                                                │
  13. ECHO  │           Interflex Systems Design             │
  14. echo  │             Post Office Box 6418               │
  15. echo  │         Laguna Niguel, CA 92607-6418           │
  16. echo  │                                                │
  17. echo  │    VISA & MasterCard orders: (714) 496-6639    │
  18. echo  │                                                │
  19. echo  └────────────────────────────────────────────────┘
  20. if t%1==t goto noparm
  21. if t%2==t goto noparm
  22. if t%1==t%2 goto samedrive
  23. Goto Install
  24. echo Found %1
  25. rem ------------- No parameters given to install
  26. :noparm
  27. echo  ┌───────────────────────────────────────────────────────────────────┐
  28. echo  │ Type INSTALL x: y:       e.g.  INSTALL A: C: (drive letters only) │
  29. echo  │                                                                   │
  30. echo  │ where x: is the source drive (the one with Pkgold Test Drive)     │
  31. echo  │   and y: is the target drive, where you want to put the program.  │
  32. echo  └───────────────────────────────────────────────────────────────────┘
  33. goto done
  34. rem ------------- User used same drive letters
  35. :samedrive
  36. echo ┌───────────────────────────────────────────────────────────┐
  37. echo │ The Source drive must be different from the Target drive. │
  38. echo │                                                           │
  39. echo │    e.g.  INSTALL A: D:                                    │
  40. echo └───────────────────────────────────────────────────────────┘
  41. goto done
  42. :install
  43. if not exist %1tdsfx.exe goto baddisk
  44. echo  ┌─────────────────────────────────────────────────────────────┐
  45. echo  │  o    Installing from "%1" to "%2"                          │
  46. echo  │                                                             │
  47. echo  │  o    A subdirectory named "TESTDRIV" will be created       │
  48. echo  │                                                             │
  49. echo  │  o    If this is okay, hit [enter]. To cancel installation  │
  50. echo  │       at this point, use Ctrl-C.                            │
  51. echo  └─────────────────────────────────────────────────────────────┘
  52. ECHO.
  53. pause
  54. ECHO.
  55. %2
  56. cd\
  57. md TestDriv > nul
  58. cd TestDriv > nul
  59. if not exist pkdemo.exe goto newdir
  60. ECHO.
  61. echo    It appears that a version of PkDEMO already exists in the
  62. echo    directory "%2\testdriv"
  63. ECHO.
  64. echo    You can install this version "on top" of the existing version
  65. echo    by hitting any key, or you can use Control-Break to stop the
  66. echo    installation and manually delete the existing PkDEMO files.
  67. echo    Or you could install to a different drive letter.
  68. ECHO.
  69. echo    Suggestion: Go ahead and let this install into the testdrive
  70. echo    directory by hitting any key.
  71. ECHO.
  72. pause
  73. echo y|del *.* > nul
  74. ECHO.
  75. :NEWDIR
  76. echo  ┌────────────────────────────────────────────────────────────┐
  77. echo  │   Now unpacking the PkDEMO program and support files....   │
  78. echo  └────────────────────────────────────────────────────────────┘
  79. ECHO.
  80. %1tdsfx
  81. if not exist pkdemo.exe goto noinstall
  82. echo  ┌────────────────────────────────────────────────────────────┐
  83. echo  │   Now unpacking the PkGOLD Help system...                  │
  84. echo  └────────────────────────────────────────────────────────────┘
  85. ECHO.
  86. %1tdhlpsfx
  87. echo  ┌────────────────────────────────────────────────────────────┐
  88. echo  │   Now unpacking some useful Docfiles...                    │
  89. echo  └────────────────────────────────────────────────────────────┘
  90. ECHO.
  91. %1docfiles
  92. if exist PKDEMO.HLP goto ALLOK
  93. echo  ┌────────────────────────────────────────────────────────────┐
  94. echo  │ HELP system not installed. Not enough room (needs 200K+)   │
  95. echo  └────────────────────────────────────────────────────────────┘
  96. :ALLOK
  97. CLS
  98. ECHO.
  99. ECHO.
  100. echo  ┌───────────────────────────────────────────────────────────────╖
  101. echo  │   You may now run the program by typing PKDEMO [enter]        ║
  102. rem
  103. if NOT exist pkdemo.hlp goto skiphelp
  104. rem
  105. echo  │   Use [F1] for online help while program is running.          ║
  106. echo  │                                                               ║
  107. echo  │   The help system has information on TNC setup and other      ║
  108. echo  │   subjects. You can use the HELP system by itself by          ║
  109. echo  │   starting the program with the "/H" option, e.g. PKDEMO/H    ║
  110. :skiphelp
  111. echo  │                                                               ║
  112. echo  │   Type HELP (a batch file) to see some other documentation.   ║
  113. echo  │   Also: Look at the various .DOC files on the disk.           ║
  114. echo  │                                                               ║
  115. echo  │   73, de Jeff WA4EGT -- InterFlex Systems -- (714) 496-6639   ║
  116. echo  ╘═══════════════════════════════════════════════════════════════╝
  117. ECHO.
  118. echo    Now type PKGOLD or PKDEMO (either will work)...
  119. goto done
  120. rem Bad Installation
  121. :noinstall
  122. cls
  123. echo ┌───────────────────────────────────────────────────────────────┐
  124. echo │ Sorry, but either no room on target, or you didn't specify    │
  125. echo │ the drives correctly, the Testdrive disk is not in "%2"       │
  126. echo │ or some other problem.  Please insert your TestDrive disk in  │
  127. echo │ some floppy drive, and try again.                             │
  128. echo └───────────────────────────────────────────────────────────────┘
  129. ECHO.
  130. goto done
  131. :baddisk
  132. ECHO.
  133. echo  ┌──────────────────────────────────────────────────────────────┐
  134. echo  │                                                              │
  135. echo  │          TDSFX.EXE is not on the %1 drive.                   │
  136. echo  │          Please insert the disk, or be sure that the         │
  137. echo  │          test drive files are on the source disk.            │
  138. echo  │                                                              │
  139. echo  └──────────────────────────────────────────────────────────────┘
  140. rem Program Ends here
  141. :done
  142. ECHO.
  143. ECHO Read any messages on the screen, then...
  144. pause
  145.